package edu.zut.cs.software.perfect.manage.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.perfect.base.service.impl.GenericManagerImpl;

import edu.zut.cs.software.perfect.manage.dao.UserGroupDao;
import edu.zut.cs.software.perfect.manage.domain.UserGroup;
import edu.zut.cs.software.perfect.manage.service.UserGroupManager;
import edu.zut.cs.software.perfect.student.domain.Student;
import edu.zut.cs.software.perfect.teacher.domain.Teacher;

/**
 * @ClassName UserGroupManagerImpl
 * @Description TODO
 * @Authorwst
 * @Date 2020年5月29日 下午11:09:52
 * @Version 1.0
 */
@Service("userGroupManager")
@Transactional
public class UserGroupManagerImpl extends GenericManagerImpl<Long, UserGroup> implements UserGroupManager {

	UserGroupDao userGroupDao;
	
	@Autowired
	public void setUserGroup(UserGroupDao userGroupDao) {
		this.userGroupDao = userGroupDao;
		this.dao=userGroupDao;
	}

	/**
	 * echo
	 */
	@Override
	public UserGroup echo(UserGroup message) {
		// TODO Auto-generated method stub
		Student student=new Student();
		student.setName("zs");
		Teacher teacher=new Teacher();
		teacher.setName("ls");
		message.setStudent(student);
		message.setTeacher(teacher);
		return message;

	}
	
	@Override
	public Student add_s() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Teacher add_t() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Student delete_s() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Teacher delete_t() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Student change_s() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Teacher change_t() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Student find_s() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Teacher find_t() {
		// TODO Auto-generated method stub
		return null;
	}

}
